package com.xiaoxi;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi
 * @ClassName UsbAdapter
 * @Description TODO
 * @Date 2023/3/15 19:53
 * @Version 1.0
 */
public class UsbAdapter implements UsbTarget {

    private TypeCAdaptee typeCAdaptee;

    public UsbAdapter(TypeCAdaptee typeCAdaptee) {
        this.typeCAdaptee = typeCAdaptee;
    }

    @Override
    public void usbInterface() {
        typeCAdaptee.typeCInterface();
        System.out.println("--------------开始转换-----------------");
        System.out.println("Type-C接口输出为usb接口了！！！");
    }

}
